#include "jost/Exceptions.hpp"

jost::Exception::Exception(const std::string& msg) throw() 
  : std::exception(),
	what_(msg)
{ }

jost::Exception::~Exception() throw() {}

const char*
jost::Exception::what() const throw() {
  return this->what_.c_str();
}

// jost::UnknownField::UnknownField(const std::string& msg) throw()	
//   : jost::Exception(msg) {}											

// jost::UnknownField::~UnknownField() throw() {} 



DEFINE_JOST_EXCEPTION(IllegalTypeConversion)
DEFINE_JOST_EXCEPTION(UnknownField)
DEFINE_JOST_EXCEPTION(MalformedJSONStream)
DEFINE_JOST_EXCEPTION(InvalidFormat)

